<?php

require_once './include/common.inc.php';
require_once 'left.php';
require_once 'right.php';
include_once './include/cart.class.php';
include_once './include/error_code.php';

$page_title = 'Acuity World WebShop';
$menu_id = 0;
$menu_str = PrintMenu();

//https://betaling.wannafind.dk/proxy/p.php/http://webshop.acuityworld.com/new/
//pay_declined.php?errorcode=18&orderid=TEST100021&actioncode=18

$errorcode = $_GET['errorcode'];
$orderid = $_GET['orderid'];
$actioncode = $_GET['actioncode'];

// ĶϢ
$sql = "update `cus_order` set `pay_flag` = '$errorcode' WHERE `id` = '$orderid' limit 1";
$db->query($sql);


$error_meg = $error_ary[$errorcode];
$inProxy=true;//used in head.htm
$user_login = true;//used in head.htm

require_once PrintEot('header');
require_once PrintEot('left');
require_once PrintEot('pay_declined');
require_once PrintEot('right');
require_once PrintEot('footer');



?>